.. _sound Functions: ========================== sound Functions ========================== .. toctree:: :maxdepth: 1 +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **Functions** | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **fadeSounds**\() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **internalSoundFade**\(tag_sound\* sound, int millisecs, int endvolume, int pause) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **internalSoundUpdate**\() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **preloadBuffers**\(tag_sound\* sound) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **refreshSoundBuffers**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **removeFadeSound**\(tag_fadesound* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | tag_sound\* __cdecl **soundAllocate**\(int type, int soundFlags) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **soundClearFades**\(, ...) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundClose**\() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundCloseData**\(unsigned long handle) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundDelete**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundFadeContinue**\(tag_sound\* s, int t, int end) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundFadePause**\(tag_sound\* s, int t, int end) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundFileSize**\(unsigned long handle) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundGetDirectSoundBufferPosition**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundGetVolume**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundInit**\(int num, int datasize, int rate) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundLoad**\(tag_sound\* sound, unsigned char\* filename) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **soundMgrClose**\() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **soundMgrDelete**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundOpenData**\(char\* file, int mode) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundPause**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundPaused**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundPlay**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundPlayFromPosition**\(tag_sound\* s, int position) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundPlaying**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundReadData**\(unsigned long handle, void\* buf, int size) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundSeekData**\(unsigned long handle, int off, int mode) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetBuffers**\(tag_sound\* sound, int numBuffers, int bufferSize) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetCallback**\(tag_sound\* s, void (__cdecl \*\*\*)(void\*, int) func, void\* b) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetChannel**\(tag_sound\* s, int c) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetData**\(tag_sound\* sound, int buffer, unsigned char\* data, int size) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetDefaultFileIO**\(unsigned long (__cdecl \*\*\*)(char\*, int) open, unsigned long (__cdecl \*\*\*)(unsigned long) close, unsigned long (__cdecl \*\*\*)(unsigned long, void\*, int) read, unsigned long (__cdecl \*\*\*)(unsigned long, void\*, int) write, unsigned long (__cdecl \*\*\*)(unsigned long, int, int) seek, unsigned long (__cdecl \*\*\*)(unsigned long) tell, unsigned long (__cdecl \*\*\*)(unsigned long) filesize) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetFileIO**\(tag_sound\* s, unsigned long (__cdecl \*\*\*)(char\*, int) open, unsigned long (__cdecl \*\*\*)(unsigned long) close, unsigned long (__cdecl \*\*\*)(unsigned long, void\*, int) read, unsigned long (__cdecl \*\*\*)(unsigned long, void\*, int) write, unsigned long (__cdecl \*\*\*)(unsigned long, int, int) seek, unsigned long (__cdecl \*\*\*)(unsigned long) tell, unsigned long (__cdecl \*\*\*)(unsigned long) filesize) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetMasterVolume**\(int a) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundSetPosition**\(tag_sound\* s, unsigned long pos) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundStop**\(tag_sound\* s) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundTellData**\(unsigned long handle) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void __cdecl **soundUpdate**\() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int __cdecl **soundVolume**\(tag_sound\* s, int a) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | unsigned long __cdecl **soundWriteData**\(unsigned long handle, void\* buf, int size) | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+